<?php
include ('header.php');

$slika = mres($_GET['file']);
$galerija = mres($_GET['galerija']);
$media = siteinfo('media');

$preview_link =$media . "/autori/" . $user['username'] . "/" . $slika;
$smarty->assign('preview_link', $preview_link);
$smarty->assign('slika', $slika);
$smarty->assign('galerija', $galerija);
$smarty->display('upload_image.tpl');
include ('footer.php');
?>
